package com.qianya.model.pojo.patient.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qianya.model.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 服药日志表
 * </p>
 *
 * @author lhl
 * @since 2020-07-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PatientHisPrescriptionVO对象", description="服药日志表")
public class PatientHisPrescriptionVO implements Serializable {

    private static final long serialVersionUID = 15354532134314L;
    @ApiModelProperty(value = "发药id")
    @TableId(value = "hp_id", type = IdType.UUID)
    private String hpId;
    @ApiModelProperty(value = "患者档案编号")
    private String fileId;

    @ApiModelProperty(value = "药品id")
    private String drugId;

    @ApiModelProperty(value = "药品名")
    private String drugName;

    @ApiModelProperty(value = "药品规格")
    private String drugSpecifications;

    @ApiModelProperty(value = "药品单价")
    private BigDecimal drugPrice;

    @ApiModelProperty(value = "药品数量")
    private Integer drugNum;

    @ApiModelProperty(value = "药品用法用量")
    private String drugUsage;

    @ApiModelProperty(value = "药品总价")
    private BigDecimal drugTotalPrice;

    @ApiModelProperty(value = "开嘱医生")
    private String adviceDoctor;
    @ApiModelProperty(value = "医嘱关联id")
    private String brId;
    @ApiModelProperty(value = "服药时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date drugTime;

    @ApiModelProperty(value = "发药状态（0，已发药1未发药）")
    private Integer drugStatus;



}
